package com.yumeko.mapper;

/**
 * @program: myTomcat_zhenghao
 * @description:
 * @author: Zheng Hao
 * @create: 2020-02-13 15:34
 */
public abstract class HttpServlet implements Serlect {
    public abstract void doGet(Request request, Response response);

    public abstract void doPost(Request request, Response response);
    @Override
    public void service(Request request, Response response) throws Exception {
        if("GET".equalsIgnoreCase(request.getMethod())) {
            doGet(request,response);
        }else{
            doPost(request,response);
        }
    }
}
